﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FRMS.Model
{
    public class DeviceInfo
    {
        public int ID { get; set; }//主键ID
        public int ElevatorID { get; set; }//电梯ID
        public string DeviceName { get; set; } = string.Empty;//设备名称
        public string DeviceNO { get; set; } = string.Empty;//设备编号
        public int DeviceType { get; set; }//设备类型
        public string DeviceIP { get; set; } = string.Empty;//设备IP
        public string DeviceUuid { get; set; } = string.Empty;//设备UUid
        public string DeviceVersion { get; set; } = string.Empty;//设备版本
        public string DeviceMask { get; set; } = string.Empty;//设备子网掩码
        public string DeviceMac { get; set; } = string.Empty;//设备物理地址
        public int BuildID { get; set; }//楼栋ID
        public string BuildingName { get; set; } = string.Empty;//单元楼栋
        public string ElevatorName { get; set; } = string.Empty;//电梯名称
        public string DeviceTypeName { get; set; } = string.Empty;//设备类型名称
        public string FloorInfo { get; set; } = string.Empty;//设备楼层
        public string pFloorInfo { get; set; } = string.Empty;//设备物理楼层
        public int m_lUserID { get; set; }//设备标识
        public int Workmode { get; set; }//工作模式
        public int IsDelete { get; set; }
        public int projectID { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public string ControllerState { get; set; } = string.Empty;//控制器状态
        public string DeviceState { get; set; } = string.Empty;//设备状态
        public string DeviceStateUpdateTime { get; set; } = string.Empty;//面板状态更新时间
        public string ControllerStateUpdateTime { get; set; } = string.Empty;//控制器状态更新时间
        public string WorkmodeUpdateTime { get; set; } = string.Empty;//模式切换时间
        public string Session { get; set; } = string.Empty;
        public string RegisterTime { get; set; } = string.Empty;//注册时间
        public string Token { get; set; } = string.Empty;
        public int LadderID { get; set; }//梯号
        public int apply_type { get; set; }//应用类型
        public string LastSyncTime { get; set; } = string.Empty;//认证记录最后一次同步时间
    }

    public class TypeName
    {
        public int ID { get; set; }
        public string DeviceTypeName { get; set; }
    }
    public class WorkmodeRecord
    {
        public int ID { get; set; }
        public int DeviceID { get; set; }
        public int WorkModeState { get; set; }
        public string WorkModeUpdateTime { get; set; }
        public string UUID { get; set; }
    }
    public class ControllerStateRecord
    {
        public int ID { get; set; }//主键ID
        public int DeviceID { get; set; }
        public string ControllerState { get; set; }
        public string ControllerStateUpdateTime { get; set; }
        public string UUID { get; set; }
    }
    public class OwnerDeviceVoucher
    {
        public OwnerInfo OwnerInfo { get; set; }
        public List< DeviceVoucher> DeviceVoucher_List { get; set; }
    }
    public class DeviceVoucher
    {
        public int DeviceID { get; set; }
        public string FloorInfo { get; set; }
    }
}
